package com.itcast.springboot.service;

import com.itcast.springboot.bean.Admin;
import com.itcast.springboot.bean.CommonResult;
import com.itcast.springboot.bean.Feedback;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FeedbackService {
    //增
    public Integer insertFeedbackUpload(Feedback feedback, MultipartFile feedbackSrc, MultipartFile feedbackSrc2);
    //增加意见反馈信息（isRead和isSolve默认为0）
    public Integer insertFeedback(@RequestBody Feedback feedback);
    //增加反馈截图1
    public String insertFeedbackSrc(MultipartFile feedbackSrc);
    //增加反馈截图2
    public String insertFeedbackSrc2(MultipartFile feedbackSrc2);


    //通过isRead和isSolve自定义规则删除信息
    public Integer deleteFeedbackTrim(Integer isRead, Integer isSolve);
    //根据id删除
    public Integer deleteFeedbackById(Integer fbid);

    //自定义规则isRead和isSolve查询信息
    public List<Feedback> getFeedbackSolvesTrim(Integer isRead, Integer isSolve);

    //修改isRead和isSolve状态：未读改为已读、已读改为已解决
    public Integer updateFeedback(Feedback feedback);
}
